<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>Document</title>
</head>

<body>
    <script>
        // let a = 2 + 2
        // switch (a) {
        //     case 3:
        //         alert('Too small')
        //         break
        //     case 4:
        //         alert("Exactly!")
        //         break
        //     case 5:
        //         alert("Too large!")
        //         break
        //     default:
        //         alert("i don not know sunch value")
        // }

        // let a = "1"
        // let b = 0

        // switch (+a) {
        //     case b + 1:
        //     alert("this runs, because +a is 1, exactly equals b+1")
        //     break

        //     default:
        //     alert("this do not run")
        // }

        let a = 2 + 2
        switch (a) {
            case 4:
                alert('right')
                break
            case 3:
            
        }
    </script>
</body>

</html>